<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib prefix="jwr"  uri="http://jawr.net/tags-el" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<c:if test="${fn:length(locations)> 0 && fn:length(locations) != 1}">
	<form:form commandName="location" id="maskLocationForm" name="maskLocationForm" 
		action="mask/location">
			<form:select path="id" onchange="maskLocation(this);">
				<form:option value="-1">-- Select current Location --</form:option>
				<form:options items="${locations}" itemValue="id" itemLabel="name"/>	
			</form:select>
			<div id="maskMsg" style="color: #B13010;"></div>
			<input type="hidden" id="selectedLocationId" name="selectedLocationId"/>
	</form:form>
			
</c:if>

